package com.yhd.tomcat.req;

import com.yhd.tomcat.handler.Handler;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/6/10 下午3:09
 */
public abstract class BaseRequest extends Handler {

    private String method;

    private String url;

    protected InputStream in;

    public Map<String,String> cookie=new HashMap<>();

    public BaseRequest(InputStream in) {
        this.in = in;
        doProcess();
    }

    protected abstract void doProcess();
    public String getMethod() {
        return method;
    }

    public String getUrl() {
        return url;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public void setUrl(String url) {
        this.url = url;
    }


}
